// DlgMoveToPos.cpp : implementation file
//

#include "stdafx.h"
#include "MotionControlSoftware.h"
#include "DlgMoveToPos.h"
#include "afxdialogex.h"


// CDlgMoveToPos dialog

IMPLEMENT_DYNAMIC(CDlgMoveToPos, CDialogEx)

CDlgMoveToPos::CDlgMoveToPos(CWnd* pParent /*=NULL*/)
	: CDialogEx(CDlgMoveToPos::IDD, pParent)
	, m_dMoveToTargetX(0)
	, m_dMoveToTargetY(0)
{

}

CDlgMoveToPos::~CDlgMoveToPos()
{
}

void CDlgMoveToPos::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_TARGETX, m_dMoveToTargetX);
	DDX_Text(pDX, IDC_EDIT_TARGETy, m_dMoveToTargetY);
}


BEGIN_MESSAGE_MAP(CDlgMoveToPos, CDialogEx)
	ON_BN_CLICKED(IDOK, &CDlgMoveToPos::OnBnClickedOk)
END_MESSAGE_MAP()


// CDlgMoveToPos message handlers


BOOL CDlgMoveToPos::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  Add extra initialization here
	UpdateData(FALSE);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}


void CDlgMoveToPos::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	CDialogEx::OnOK();
}
